package net.betou.trade.main.manager;

import javax.servlet.http.HttpServletRequest;

import net.betou.common.page.Pagination;
import net.betou.trade.entity.main.AgentAndAdmins;
import net.betou.trade.entity.main.Log;

public interface LogMng{
	
	public Pagination getPage( int category, String searchProperty, String searchValue, String orderProperty, String orderDirection, int pageNo, int pageSize );

	public Log findById( Integer id );
	
	public Log operating( int saveOrUpdate, HttpServletRequest request, String title, String content );
	
	public Log operating( HttpServletRequest request, String title, String content );

	public Log loginFailure( HttpServletRequest request, String title, String content );

	public Log loginSuccess( HttpServletRequest request, AgentAndAdmins user, String title );

	public Log save( Log bean );

	public Log deleteById( Integer id );

	public Log [ ] deleteByIds( Integer [ ] ids );

	public int deleteBatch( Integer category, Integer days );
}